﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AyFrame.Dto
{
    public class LoginRequest
    {
        public string LoginName { get; set; }
        public string Password { get; set; }
        public string Cid { get; set; }
        public string Ip { get; set; }
    }

    public class LoginResponse
    {
        public bool IsSuccess { get; set; }
        public string UserId { get; set; }
        public string ApiKey { get; set; }
        public string ErrMsg { get; set; }

        public string UserName { get; set; }

        public string SiteName { get; set; }

        public string SiteNo { get; set; }

        public long SiteId { get; set; }

        public string Uid { get; set; }

        /// <summary>
        /// 登录日志id
        /// </summary>
        public long LoginId { get; set; }

        public string Ip { get; set; }
    }

    public class UserInfo
    {
        public string Name { get; set; }     
        public string Uid { get; set; }
        //
        //public Site Site { get; set; }

        //public List<Role> Roles { get; set; }

        //public List<Permission> Permissions { get; set; }
    }
}
